<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>我的购物车</title>
</head>
<body>
<header>
    <div>
        <h2><a href="index.html">XXXX商城</a></h2>
        <div>
            <a href="reg.html">注册</a>
            <a href="用户登录.html">登录</a>
            <a href="myinfo.html">个人信息</a>
            <a href="cart.html">购物车</a>
        </div>
    </div>
</header>
<fieldset>
    <legend>我的购物车</legend>
    购物车商品查询
</fieldset>

</body>
</html>


<style>
    * {
        vertical-align: middle;
        text-decoration: none;
    }

    fieldset {
        width: 50%;
        margin: 40px auto;
    }

    div {
        line-height: 50px;
    }

    span {
        display: inline-block;
        width: 200px;
        line-height: 30px;
        vertical-align: middle;
        color: red
    }

    input, span, select {
        min-width: 200px;
        height: 30px;
        text-align: center;
        box-sizing: border-box;
    }

    label {
        min-width: 100px;
        display: inline-block;
        text-align: right;
        padding: 0px 5px;
        box-sizing: border-box;
    }

    header > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 1200px;
        margin: 0px auto
    }

    header>div a{
        padding: 10px;
    }

    header {
        background-color: #ddd;
    }

    legend{
        background-color: #ddd;
        padding: 5px 10px;
        border-radius: 5px;
        font-weight: bold;
        color: #555;
    }
</style>